package com.tuanzi.loan.schedule.receipt.monitor.sender;

import com.tuanzi.loan.schedule.receipt.monitor.ISender;
import org.springframework.mail.javamail.JavaMailSender;

public class SenderFactory {

    public static ISender createEmailSender(JavaMailSender mailSender, String from, String to, String subject, String content) {
        return new EmailSender(mailSender, from, to, subject, content);
    }

    public static ISender createDingDingSender(DingTalkService dingTalkService, String url,String content) {
        return new DingDingSender(dingTalkService, url, content);
    }
}
